BLOCK.Model = "models/props_lab/powerbox01a.mdl";
BLOCK.BlockName = "Refresher";
BLOCK.Desc = "Gives ammo and health to players who are touching it";
BLOCK.Health = 1500;
BLOCK.HackTime = 7;
BLOCK.HackDuration = 30;

function BLOCK:Initialize()
	self.burn = false;
end

function BLOCK:StartTouch(ent)
	if(!SERVER) then return; end
	if(!ent:IsPlayer()) then return; end
	
	if(ent:Team() == self.Team) then 
		if(!self.burn) then hook.Call("HandleRefresh", nil, ent);
		else 
			ent:Ignite();
			ent:RemoveAllAmmo();
		end
	end
end

function BLOCK:Hack(ply)
	self.burn = true;
end
function BLOCK:EndHack()
	self.burn = false;
end